{extends file="./main.tpl"}
{block name=body}
<form name="truckUnload" action="{$smarty.server.PHP_SELF}" method="GET">
<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
<tr>
  <td align="center" class="table1" colspan="16"><b>Truck Unload</b></td>
</tr>
<tr>
  <td class="table2">
  	<select onchange="this.form.submit()" name="truckMasterId"  autofocus />
  	  <option value="0">Select Truck</option>
  	   {html_options values=$truckArray.truckId output=$truckArray.truckNo selected=$selectedTruck}
  </select>
  </td>
</tr>
</table>
<table align="center">
	<tr>
		<td class="table1">FROM</td>
		<td class="table1">TO</td>
		<td class="table1">TRUCK NO</td>
		<td class="table1">INVOICE NO</td>
		<td class="table1">INVOICE DATE</td>
  </tr>
  {section name=sec loop=$unloadArray}
  <tr>
  	<td class="table2" align="left">{$unloadArray[sec].fromName}</td>
  	<td class="table2" align="left">{$unloadArray[sec].toName}</td>
  	<td class="table2" align="left">{$unloadArray[sec].truckNo}</td>
  	<td class="table2" align="left"><a href="unloadingregister.php?invoiceNo={$unloadArray[sec].invoiceNo}"" class="link">{$unloadArray[sec].invoiceNo}</a></td>
  	<td class="table2" align="left">{$unloadArray[sec].invoiceDate}</td>
  </tr>
  {/section}
</table>
</form>
{/block}
